package com.sneaker.shower.entity.domain.user;


import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.sneaker.shower.entity.domain.BaseDomain;
import com.sneaker.shower.entity.enums.UserTypeEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("user")
public class UserDO extends BaseDomain {
    private Long cartGuid;

    private Integer userType = UserTypeEnum.NORMAL.getCode();
    private String phone;
    /**
     * 会员余额
     */
    private BigDecimal amount = BigDecimal.ZERO;

    private Boolean retailFlag;

    private String openId;
    private String nickName;
    private String avatarUrl;
    private String unionId;

    private String remarkName;

    @Version
    private Integer version;

    private Long invitedUserGuid;

    private String invitedQrCodeUrl;
}
